import { getEnv } from '@/storage/global'

let admin_url: string = ''

const env: string = getEnv()

switch (env) {
  case 'dev': // 开发用
    admin_url = 'http://192.168.3.96:5088' // 龙工
    break
  case 'dev1':
    admin_url = 'http://192.168.3.90:5088' // 蒋工
    break
  case 'yd':
    admin_url = 'https://admin.yslpms.com'
    break
  default:
    admin_url = '错误env'
}

export type admin_type = 'admin'
export const baseURL: string = 'https://admin.yslpms.com' + '/api'
export const platform: admin_type = 'admin'
